<!--This Plugin was Written By Atwood Kang-->
<!--该页面由 Atwood Kang 编写-->
<!--基于 Apache-2.0-->

<!--
    _   _                           _   _  __                 
   / \ | |___      _____   ___   __| | | |/ /__ _ _ __   __ _ 
  / _ \| __\ \ /\ / / _ \ / _ \ / _` | | ' // _` | '_ \ / _` |
 / ___ \ |_ \ V  V / (_) | (_) | (_| | | . \ (_| | | | | (_| |
/_/   \_\__| \_/\_/ \___/ \___/ \__,_| |_|\_\__,_|_| |_|\__, |
                                                        |___/ 
-->

<?php
$return_url = $_GET['return_url'];
$token = $_GET['token'];
$time = time();
$time_web = $_GET['time'];

$token_list = json_decode(file_get_contents("token.json"), true);
$size = sizeof($token_list);

for ($i = 0; $i <= $size-1; $i ++) {
    if ($token_list[$i] == $token) {
        header("Location: solve.php?url=".$return_url.'&token='.md5($token).'time='.intval($time_web) - intval($time).'id='.$token);
    } else {
        continue;
    }
}

echo 'Unknown Error';